package website.digitalocean.chapter17;

/**
 * @author: longhc@citycloud.com.cn
 * @since: 2023/2/16 10:27
 * @version: 1.0
 */
public class OpenFileCommand implements Command{

    private FileSystemReceiver fileSystemReceiver;

    public OpenFileCommand(FileSystemReceiver fileSystemReceiver) {
        this.fileSystemReceiver = fileSystemReceiver;
    }

    @Override
    public void execute() {
        fileSystemReceiver.openFile();
    }
}
